home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / July 96 / Re(2) FW_CODPart WritePartInf < prev    next >
Encoding:
Internet Message Format  |  1996-07-15  |  1.9 KB  |  [TEXT/ttxt]

  1. Subject:     Re(2): FW_CODPart::WritePartInfo
  2. Sent:        7/15/96 3:26 PM
  3. Received:    7/15/96 3:43 PM
  4. From:        David McCusker, david_mccusker@powertalk.apple.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. Brad Hutchings (brad@hutchings-software.com) writes:
  9. > > Have you tried to use FW_CFrame::Internalize/ExternalizeFrame? You
  10. > > should not have to use FW_CODPart::WritePartInfo directly.
  11. >
  12. > Yes, but I get an ODStorageUnitView to work with in there. Deleting from
  13. > the value seems to have no effect. Then again, neither did removing it in
  14. > FWCODPart::WritePartInfo. I'm beginning to think that OpenDoc isn't very
  15. > aggressive about compacting files. I'll ask David McCusker on
  16. > OD-Interest....
  17.  
  18. With regard to compacting files, OpenDoc depends on the container suite
  19. being used, which currently is the Bento container suite.  Bento was
  20. originally a log format in which nothing was ever really deleted.  Ed Lai
  21. did an excellent job shortly before OpenDoc 1.0 of implementing garbage
  22. collection for unreachable draft entities in Bento files, and this is the
  23. only source of space that is re-used under Bento.
  24.  
  25. (I've been making comprehensive performance optimizations in a new version
  26. of Bento which, among other things, deals with free space more efficiently.
  27. But these optimizations will appear in a big bang at a later date, rather
  28. than trickling into the current Bento over time.)
  29.  
  30. When you say "delete" I wonder whether you are destroying the entire value
  31. or merely excising a portion.  If the latter, I'll have to ask Ed whether
  32. his garbage collection works on unreachable _pieces_ of values.
  33.  
  34. When you say "has no effect", do you mean only that the data is still in
  35. the file, or that subsequent calls to the Storage API demonstrates that
  36. the data is still accessible through the interface?
  37.  
  38. David McCusker, OpenDoc Storage & Bento, david_mccusker@powertalk.apple.com
  39.  
  40.  
  41.